/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.posplus.losspreventiondataimporter.service;

import com.posplus.lossprevention.APDAOFactory;
import com.posplus.lossprevention.dao.ActionsDAO;
import com.posplus.lossprevention.mapping.Actions;
import java.util.List;

/**
 *
 * @author scottw
 */
public class ActionsService {

    private ActionsDAO actionsDAO;
    
    public ActionsService(APDAOFactory lpFactory) {
        this.actionsDAO = lpFactory.getActionsDAO();
    }
    
    public ActionsService(ActionsDAO actionsDAO){
        this.actionsDAO = actionsDAO;
    }
    
    public List<Actions> getAll(){
        return actionsDAO.findAll();
    }
}
